import * as tslib_1 from "tslib";
import { Entity, NgField, NgEntity } from '@farris/devkit';
var EmployeeMEntity = /** @class */ (function (_super) {
    tslib_1.__extends(EmployeeMEntity, _super);
    function EmployeeMEntity() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ID',
            dataField: 'id',
            primary: true,
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "id", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Version',
            dataField: 'version',
            originalDataFieldType: 'DateTime',
            initValue: '0001-01-01T00:00:00',
            path: 'Version',
            enableTimeZone: true,
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "version", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Code',
            dataField: 'code',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Code',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [100],
                    message: '最大长度为100',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "code", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Name',
            dataField: 'name',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Name',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [1000],
                    message: '最大长度为1000',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "name", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Remark',
            dataField: 'remark',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Remark',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [1000],
                    message: '最大长度为1000',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "remark", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'State',
            dataField: 'state',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'State',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [22],
                    message: '最大长度为22',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "state", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Organization',
            dataField: 'organization',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Organization',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "organization", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Gender',
            dataField: 'gender',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Gender',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [22],
                    message: '最大长度为22',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "gender", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'CountryOrArea',
            dataField: 'countryOrArea',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'CountryOrArea',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [22],
                    message: '最大长度为22',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "countryOrArea", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Location',
            dataField: 'location',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Location',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [22],
                    message: '最大长度为22',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "location", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'IDNumber',
            dataField: 'idNumber',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'IDNumber',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [18],
                    message: '最大长度为18',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "idNumber", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'PhoneNumber',
            dataField: 'phoneNumber',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'PhoneNumber',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "phoneNumber", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Mailbox',
            dataField: 'mailbox',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Mailbox',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [100],
                    message: '最大长度为100',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "mailbox", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'zgxl',
            dataField: 'zgxl',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'zgxl',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "zgxl", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ryzj',
            dataField: 'ryzj',
            originalDataFieldType: 'Number',
            initValue: 0,
            path: 'ryzj',
        }),
        tslib_1.__metadata("design:type", Object)
    ], EmployeeMEntity.prototype, "ryzj", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'yhzh',
            dataField: 'yhzh',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'yhzh',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "yhzh", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'zwlx',
            dataField: 'zwlx',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'zwlx',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "zwlx", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'rygw',
            dataField: 'rygw',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'rygw',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "rygw", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'rybm',
            dataField: 'rybm',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'rybm',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "rybm", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'rygs',
            dataField: 'rygs',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'rygs',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], EmployeeMEntity.prototype, "rygs", void 0);
    EmployeeMEntity = tslib_1.__decorate([
        NgEntity({
            originalCode: "employeeM",
            nodeCode: "employeeMs",
            allowEmpty: true
        })
    ], EmployeeMEntity);
    return EmployeeMEntity;
}(Entity));
export { EmployeeMEntity };
